package Tool;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public interface Binaryable {
	/**
	 * 写入流
	 * @param out			输出流
	 * @throws TestIOExc	IO异常
	 */
	public void toBytes(OutputStream out) throws IOException;
	
	/**
	 * 读入流
	 * @param in			输入流
	 * @throws TestIOExc	IO异常
	 */
	public void fromBytes(InputStream in) throws IOException;
}
